class Log < ActiveRecord::Base
  belongs_to :table

  def to_json
    a = '{'
    a<<'"login":"'<<self.player_name<<'",'
    a<<'"action":"'<<self.action<<'",'
    a<<'"bet":'<<self.bet<<'}'
    return a
  end
end
